-module(hello).
-compile(export_all).


a('GET', Req) ->
    Req:respond({200, [{"Content-Type", "text/plain"}],
                         "hello,world!\n"}).

b('GET', Req, P) ->
    template:render_ok(Req,greeting_dtl, [{username, P}]).

c('GET', Req, [A,B]) ->
    Req:respond({200, [{"Content-Type", "text/plain"}],
                         A ++ "--" ++ B ++ "cc!\n"}).
